package com.nxy.cpfsfe.mybatis.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * to_ncs_crdl
 * @author 
 */
public class ToNcsCrdl implements Serializable {
    private Long id;

    /**
     * 机构号
     */
    private String bankNo;

    /**
     * 绑定时间
     */
    private Date bndTm;

    /**
     * 解绑时间
     */
    private Date unBndTm;

    /**
     * 证书DN
     */
    private String crdlDN;

    /**
     * 绑定标志
     */
    private String bndFlg;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public Date getBndTm() {
        return bndTm;
    }

    public void setBndTm(Date bndTm) {
        this.bndTm = bndTm;
    }

    public Date getUnBndTm() {
        return unBndTm;
    }

    public void setUnBndTm(Date unBndTm) {
        this.unBndTm = unBndTm;
    }

    public String getCrdlDN() {
        return crdlDN;
    }

    public void setCrdlDN(String crdlDN) {
        this.crdlDN = crdlDN;
    }

    public String getBndFlg() {
        return bndFlg;
    }

    public void setBndFlg(String bndFlg) {
        this.bndFlg = bndFlg;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ToNcsCrdl other = (ToNcsCrdl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBankNo() == null ? other.getBankNo() == null : this.getBankNo().equals(other.getBankNo()))
            && (this.getBndTm() == null ? other.getBndTm() == null : this.getBndTm().equals(other.getBndTm()))
            && (this.getUnBndTm() == null ? other.getUnBndTm() == null : this.getUnBndTm().equals(other.getUnBndTm()))
            && (this.getCrdlDN() == null ? other.getCrdlDN() == null : this.getCrdlDN().equals(other.getCrdlDN()))
            && (this.getBndFlg() == null ? other.getBndFlg() == null : this.getBndFlg().equals(other.getBndFlg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBankNo() == null) ? 0 : getBankNo().hashCode());
        result = prime * result + ((getBndTm() == null) ? 0 : getBndTm().hashCode());
        result = prime * result + ((getUnBndTm() == null) ? 0 : getUnBndTm().hashCode());
        result = prime * result + ((getCrdlDN() == null) ? 0 : getCrdlDN().hashCode());
        result = prime * result + ((getBndFlg() == null) ? 0 : getBndFlg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bankNo=").append(bankNo);
        sb.append(", bndTm=").append(bndTm);
        sb.append(", unBndTm=").append(unBndTm);
        sb.append(", crdlDN=").append(crdlDN);
        sb.append(", bndFlg=").append(bndFlg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}